package com.xf.lastmall.order.api.model;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 退货物流表
 * </p>
 *
 * @author mybatis plus自动生成代码类：MybatisResourcesGenerator.java
 * @since 2020-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderReturnGoodsDeliverEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long deliverId;

    private Long returnId;

    /**
     * 收货人姓名
     */
    private String name;

    /**
     * 联系人电话
     */
    private String mobile;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 邮政编码
     */
    private String postalCode;

    /**
     * 物流编号 未填写单号为null
     */
    private String deliverNo;

    /**
     * 物流渠道
     */
    private String deliverChannel;

    /**
     * 物流公司编码
     */
    private String deliverChannelCode;

    /**
     * 发货人
     */
    private String shipName;

    /**
     * 退货填单时间
     */
    private Date shipTime;

    /**
     * 发货人手机号
     */
    private String shipMobile;

    /**
     * 签收时间
     */
    private Date signTime;

    /**
     * 店铺审核通过时间
     */
    private Date createTime;

    /**
     * 用户退货发出时间
     */
    private Date updateTime;

    private String fullAddress;

    public String getFullAddress() {
        return this.getProvince() + this.getCity() + this.getDistrict() + this.getAddress();
    }
}
